-- GENERATED SPELL FOR [Black Ravager Mastiff] --


function spell0_1258(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(3149,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1258', 15000, 1)
end

function spell1_1258(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1258', 15000, 1)
end

function Sorts_1258(pUnit, Event)
local choix_sorts_1258 = math.random(0, 1)
if choix_sorts_1258 == 0 then
pUnit:RegisterEvent('spell0_1258', 1, 1)
end
if choix_sorts_1258 == 1 then
pUnit:RegisterEvent('spell1_1258', 1, 1)
end
end

function mob1258_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1258', math.random(1500, 3000), 1)
end

function mob1258_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1258_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1258_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1258, 1, 'mob1258_Action')
RegisterUnitEvent(1258, 2, 'mob1258_Leave')
RegisterUnitEvent(1258, 3, 'mob1258_Kill')
RegisterUnitEvent(1258, 4, 'mob1258_Die')
